from test.All import driver
from test.BlogListTest import BlogList
from test.BlogLoginTest import BlogLogin
from test.BlogListTest import List
from common.Utils import  BlogDriver
from test.BlogDetailTest import  Detail
from test.BlogEditTest import Edit

#入口函数
if __name__=="__main__":
   login_obj = BlogLogin()
   # login_obj.LoginFailTest()

   #未登录的情况下进入博客编辑页
   Edit.Fail_Edit_notLogin()

   login_obj.LoginSucTest()
   #登陆成功后就可以
   list_obj = BlogList()
   list_obj.ListTestByLogin()
   #点击注销按钮，查看注销后的页面，再重新登陆进入系统主页
   List.ListTestByLoginAgain()

   #博客详情页测试
   Detail.check()


   #博客编辑页测试
   # Edit.Fail_Edit()
   Edit.Suc_Edit()

#浏览器退出
BlogDriver.driver.quit()
